package com.mccken.designpattern.factory.factory_method.demo1;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2023-04-12 23:40
 **/
public class Client {
	public static void main(String[] args) {
		Demo1IFactory factory = new Demo1FactoryA();
		factory.createProduct().doSomething();
		
		factory = new Demo1FactoryB();
		factory.createProduct().doSomething();
		
		factory = new Demo1FactoryC();
		factory.createProduct().doSomething();
	}
}
